package controller;

import bean.LiveQuestionBankInfo;
import biz.LiveQuestionBankBiz;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import util.PreAddCallback;

import java.util.List;
@Controller
@RequestMapping("/liveQuestionBank")
public class LiveQuestionBankController {
    @Autowired
    private LiveQuestionBankBiz lqbb;


    @RequestMapping(value="/findLiveQuestionBankByLiveBroadcastNumber")
    @ResponseBody
    public String findLiveQuestionBankByLiveBroadcastNumber(Integer liveBroadcastNumber,String callback) {
        return PreAddCallback.preAddCallback(JSONArray.toJSONString(lqbb.findLiveQuestionBankByLiveBroadcastNumber(liveBroadcastNumber)),callback);
    }


}
